<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>测试接口</title>
<script src="https://cdn.bootcss.com/prettify/r298/prettify.min.js"></script>
<link href="https://cdn.bootcss.com/prettify/r298/prettify.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet" />
</head>
<body onload="PR.prettyPrint()">
<div id="wmd-preview" class="wmd-preview">
<h1><a href="index.html">《首页</a> 测试接口:</h1>
<ul class="toc">
<li><a href="#查看所有的年级信息">查看所有的年级信息</a></li><li><a href="#查询年级信息">查询年级信息</a></li><li><a href="#添加年级信息">添加年级信息</a></li><li><a href="#获取配置文件数据">获取配置文件数据</a></li>
</ul>
<hr>
<h2 id="查看所有的年级信息">查看所有的年级信息</h2>

<pre class="prettyprint lang-json">
method：GET
url: /demo/queryAllGrade
</pre>

<p><strong>参数列表</strong></p>

<table><tr><th>参数名</th><th>类型</th><th>必需</th><th>描述</th></tr></table>

<p>返回结果: <a href="javaCodes/SwaggerControllerDemo_queryAllGrade_Grade.html">Android Code</a> | <a href="iosCodes/SwaggerControllerDemo_queryAllGrade_Grade.html">IOS Code</a></p>

<pre class="prettyprint lang-json">
{
  "gradeId": "long //ID标识",
  "gradeName": "string //年级名称"
}
</pre>

<hr><h2 id="查询年级信息">查询年级信息</h2>

<pre class="prettyprint lang-json">
method：GET
url: /demo/queryById/{id}
</pre>

<p><strong>参数列表</strong></p>

<table><tr><th>参数名</th><th>类型</th><th>必需</th><th>描述</th></tr><tr><td>id</td><td>long</td><td>false</td><td>ID标识</td></tr></table>

<p>返回结果: <a href="javaCodes/SwaggerControllerDemo_queryById_Grade.html">Android Code</a> | <a href="iosCodes/SwaggerControllerDemo_queryById_Grade.html">IOS Code</a></p>

<pre class="prettyprint lang-json">
{
  "gradeId": "long //ID标识",
  "gradeName": "string //年级名称"
}
</pre>

<hr><h2 id="添加年级信息">添加年级信息</h2>

<pre class="prettyprint lang-json">
method：POST
url: /demo/addGrade
</pre>

<p><strong>参数列表</strong></p>

<pre class="prettyprint lang-json">
{
  "gradeId": "long //ID标识",
  "gradeName": "string //年级名称"
}
</pre>

<p>返回结果: <a href="javaCodes/SwaggerControllerDemo_addGrade_Result.html">Android Code</a> | <a href="iosCodes/SwaggerControllerDemo_addGrade_Result.html">IOS Code</a></p>

<pre class="prettyprint lang-json">
{
  "success": "boolean //是否成功",
  "msg": "string //消息",
  "obj": {}
}
</pre>

<hr><h2 id="获取配置文件数据">获取配置文件数据</h2>

<pre class="prettyprint lang-json">
method：GET
url: /demo/getProperty
</pre>

<p><strong>参数列表</strong></p>

<table><tr><th>参数名</th><th>类型</th><th>必需</th><th>描述</th></tr><tr><td>key</td><td>string</td><td>false</td><td>配置文件中的Key</td></tr></table>

<p>返回结果: <a href="#">Android Code</a> | <a href="#">IOS Code</a></p>

<pre class="prettyprint lang-json">
string{}
</pre>

<hr>
</div>
</body>
</html>